import request from '@/utils/request'

// 查询列表 basic-data:account-day:list
export function listAccountDay(query) {
  return request({
    url: '/basic/data/accountDay/list',
    method: 'get',
    params: query
  })
}

// 新增  basic-data:account-day:add
export function addAccountDay(data) {
    return request({
        url: '/basic/data/accountDay/add',
        method: 'post',
        data: data
    })
}

// 修改  basic-data:account-day:update
export function editAccountDay(data) {
    return request({
        url: '/basic/data/accountDay/update',
        method: 'post',
        data: data
    })
}

// 详情  basic-data:account-day:detail
export function detailAccountDay(query) {
    return request({
        url: '/basic/data/accountDay/detail',
        method: 'get',
        params: query
    })
}

// 删除  basic-data:account-day:delete
export function deleteAccountDay(params) {
    return request({
      url: '/basic/data/accountDay/delete?id=' + params.id,
      method: 'delete',
      data: params
    })
}

/**
 * 客户下拉接口
 * @param {*} params 
 */
export function customerOptionSelect(params = {}) {
    return request({
      url: '/basic/data/customer/optionSelect',
      method: 'post',
      data: params
    })
  }